function value = get_LAMPatoms_pref(pref,check)

group = getappdata(0,'LAMPatoms');

if nargin == 0

  value = group;
    
elseif isfield(group,pref)
  
  value = group.(pref);
  
else
  
  value = check;
  
end

end

